﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ManageProducts
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%  IList<JVLMRP.MRPProducts> Products = (IList<JVLMRP.MRPProducts>)ViewData["Products"];
        
        %>
    <h2>ManageProducts<br /></h2>
        <table style="width:100%;">
            <tr>
                <td>
                    PRODUCT CODE</td>
            <td>
                PRODUCT NAME</td>
            <td>
                CURENT IN STOCK</td>
            <td>
                PLAN IN STOCK</td>
        </tr>
        <% if (Products != null)
           {
               foreach (JVLMRP.MRPProducts Product in Products)
               {     
               %>
        <tr>
            <td>
                <%=Product.Productcode %>&nbsp;</td>
            <td>
                <%=Product.Productname %>&nbsp;</td>
            <td>
                <%=Product.Curentinstock %>&nbsp;</td>
            <td>
                <%=Product.Planinstock %>&nbsp;</td>
        </tr>
            <%} %>
        <% }%>
        </table>
    
    <p>&nbsp;</p>

</asp:Content>
